package com.longli.tank;

public class Main {
    public static void main(String[] args) throws InterruptedException {
        TankFrame.INSTANCE.setVisible(true);
        new Thread(()->new Audio("audio/war1.wav").play()).start();
        while (true){
            Thread.sleep(25);
            TankFrame.INSTANCE.repaint();
        }
        //del(100);
    }

    public static void del(Integer x){
        x--;
        System.out.println(x);
        if (x==0){
            return;
        }
        del(x);
    }

}
